<?php
// define("HOST",'localhost');
// define("USER",'root');
// define("PWD",'');
// define("DBNAME",'onecms');
$type="mysql";
$host="localhost";
$db="onecms";
$user="root";
$key="1111";
try{
	$conn=new PDO("{$type}:host={$host};dbname={$db}",$user,$key);
//	echo "连上了";
}catch(PDOException $e){
	die ("Error:".$e->getMessage()."<br>");
}